﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pool
{
    class Program
    {
        static void Main(string[] args)
        {
            object p = 12;
            Resource res1 = new Resource(p);
            ResourcePool pool = new ResourcePool();
            pool.Add(res1);
            //Resource res2 = new Resource(p);
            //pool.Add(res2);
            pool.Add(res1);
            pool.Remove(res1);
            //pool.Add(res1);
            pool.Remove(res1);

        }
    }
}
